<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>京东浮动布局</title>
    <style>
      * {
        margin: 0;
        padding: 0;
      }

      .hotlist {
        width: 1150px;
        height: 389px;
        margin: 100px auto 0 auto;
      }

      /* .hotlist下的直接子元素浮动 */
      .hotlist > div{
        float: left;
      }

      .left {
        /* float: left; */
        width: 360px;
        height: 389px;
      }

      ul li {
        list-style: none;
      }

      .left ul li, 
      .right ul li {
        float: left;
        width: 170px;
        height: 190px;
        margin-bottom: 10px;
        margin-right: 10px;
      }

      .center {
        /* float: left; */
        width: 350px;
        height: 389px;
        margin:0 40px 0 40px;
      }

      .right{
        /* float: left; */
        width: 360px;
        height: 389px;
      }

    </style>
  </head>
  <body>
    <!-- 京东浮动布局开始 -->
    <div class="hotlist">
      <div class="left">
        <ul>
          <li><a href="#"><img src="images/left01.png" alt=""></a></li>
          <li><a href="#"><img src="images/left02.png" alt=""></a></li>
          <li><a href="#"><img src="images/left03.png" alt=""></a></li>
          <li><a href="#"><img src="images/left04.png" alt=""></a></li>
        </ul>
      </div>
      <div class="center">
        <a href="#"><img src="images/center.png" alt=""></a>
      </div>
      <div class="right">
        <ul>
            <li><a href="#"><img src="images/right01.png" alt=""></a></li>
            <li><a href="#"><img src="images/right02.png" alt=""></a></li>
            <li><a href="#"><img src="images/right03.png" alt=""></a></li>
            <li><a href="#"><img src="images/right04.png" alt=""></a></li>
        </ul>
      </div>
    </div>
    <!-- 京东浮动布局结束 -->
  </body>
</html>
